package com.travel.server.manager.impl.controller;

import com.travel.server.manager.api.IProjectDataService;
import com.travel.server.manager.dto.request.project.data.*;
import com.travel.server.manager.impl.controller.base.AbstractController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/29 11:51
 * @Desc:
 */
@RestController
public class ProjectDataController extends AbstractController implements IProjectDataService {
    @Override
    public Object queryProjectData(@RequestBody QueryProjectDataRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateProjectConsul(@RequestBody UpdateProjectConsulRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryProjectTrend(@RequestBody QueryProjectTrendRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportProjectData(@RequestBody ExportProjectDataRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryProjectProfitList(@RequestBody QueryProjectProfitListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportProjectProfitList(@RequestBody ExportProjectProfitListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryProjectCost(@RequestBody QueryProjectCostRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportProjectCost(@RequestBody ExportProjectCostRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryProjectCostDetail(@RequestBody QueryProjectCostDetailRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateProjectCostDetail(@RequestBody UpdateProjectCostDetailRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryProjectApply(@RequestBody QueryProjectApplyRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportProjectApply(@RequestBody ExportProjectApplyRequest request) {
        return this.getCommand().handle(request);
    }
}
